import request from '@/utils/request'


// 获取试卷列表
export const GetTestPapers = (obj: { page: number, limit: number, key: string, isBan: number, isPublish: number }) => {
    return request({
        method: 'get',
        params: obj,
        url: 'api/Exam/GetTestPapers'
    })
}


// 获取单个试卷
export const GetSingleTestPaper = (obj:any) => {
    return request({
        method: 'get',
        params: obj,
        url: 'api/Exam/GetSingleTestPaper'
    })
}

// 发布-取消试卷
export const PublishTestPapers = (obj:any) => {
    return request({
        method: 'Post',
        data: obj,
        url: 'api/Exam/PublishTestPapers'
    })
}

// 禁用-恢复
export const BanTestPapers = (obj:any) => {
    return request({
        method: 'Post',
        data: obj,
        url: 'api/Exam/BanTestPapers'
    })
}

// 删除试卷
export const DeleteTestPapers = (obj:any) => {
    return request({
        method: 'Post',
        data: obj,
        url: 'api/Exam/DeleteTestPapers'
    })
}



